import { Module } from '@nestjs/common';
import { TestService } from './test.service';
import { TestController } from './test.controller';
import { Test } from './entities/test.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
  imports: [TypeOrmModule.forFeature([Test])], //在目标模块中导入 TypeOrmModule.forFeature() 并将 Guard 实体注册到该模块：
  controllers: [TestController],
  providers: [TestService],
})
export class TestModule {}
